package com.kyk.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.kyk.entity.Users;
import com.kyk.util.Result;
import jakarta.servlet.http.HttpSession;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author 凯
 * @since 2025-09-12
 */
public interface IUsersService extends IService<Users> {
    /**
     * 注册用户
     * @param users
     * @return
     */
    Result addUser(Users users);
    /**
     * 发送验证码
     * @param email
     * @return
     */
    String sendCode(String email);

    /**
     * 注册发送验证码
     * @param email
     * @return
     */
    Result registerSendCode(String email);

    /**
     * 重置密码发送验证码
     * @param email
     * @return
     */
    Result resetSendCode(String email);

    /**
     * 登录
     * @param users
     * @return
     */
    Result login(Users users);

    Result resetPassword(Users users);

    Result getCurrentUser(Long userId, String userType);
}
